package openbang.common.vo;


import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * 工作流程中的模块描述
 * 如：销售单录入
 *     销售单修改
 *     销售单审批（涉及：查询单据、修改单据状态、新增审批记录 三个操作）
 *
 *
 * 所有操作类型的归纳:
 *  新增、保存、查询、修改、删除、复制、存档、存档查询
 *
 *  必须归属某一个子系统
 *
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class WorkModule implements IsSerializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent
	private String code="";

	@Persistent
	private String name="";

	@Persistent
	private String type="";	

	@Persistent
	private String remark="";

	@Persistent
	private Integer status=StatusEnum.PENDING_VERIFY.getCode();

	@Persistent
	private Date regTime=new Date();

	
	@Persistent
	private Date updTime=new Date();
		

	@Persistent
	private String workFlowCode = "";
	
	@NotPersistent
	private WorkFlow workFlow ;
	
    public WorkModule() {
    }


	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
}